//打印成绩单
module.exports = function printReport(students,id){
    let studentScore = ``;
    for(let item_student of students){
        let sum = parseInt(item_student['数学']) +parseInt(item_student['语文']) +parseInt(item_student['英语'])+parseInt(item_student['编程']);
        let average = (sum / 4).toFixed(1);
        studentScore += `${item_student.name}|${item_student['数学']}|${item_student['语文']}|${item_student['英语']}|${item_student['编程']}|${average}|${sum}\n`;
    }
    console.log(`姓名|数学|语文|英语|编程|平均分|总分\n`+
    `========================\n`+
    `${studentScore}`+
    `========================\n`+
    `全班总分平均数：xxx\n`+
    `全班总分中位数：xxx`);
}